﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using ERP.ERPSystem.ProductionSystem.Dto;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 班组服务接口
    /// </summary>
    public interface ITeamService : IApplicationService
    {
        /// <summary>
        /// 获取班组分页列表
        /// </summary>
        /// <param name="page">页码</param>
        /// <param name="limit">每页数量</param>
        /// <param name="teamCode">班组编号（可选）</param>
        /// <param name="teamName">班组名称（可选）</param>
        /// <returns></returns>
        Task<TeamPageResultDTO> GetTeamPageListAsync(int page = 1, int limit = 10, string teamCode = null, string teamName = null);

        /// <summary>
        /// 根据ID获取班组详情
        /// </summary>
        /// <param name="id">班组ID</param>
        /// <returns></returns>
        Task<TeamDTO> GetTeamByIdAsync(int id);
    }
}
